<?php
$attributeConfigurationManager = pc_config("cm.attributeConfigurationManager");
$attribute = pc_variable("attribute");
$name = pc_variable("name");
$value = pc_variable("value");
$attributeConfiguration = $attributeConfigurationManager->getAttributeConfiguration($attribute);
$view = $attributeConfiguration->getEditView();
$errors = pc_variable("errors");
pc_pagelet("show-entity/attribute/" . $view, array(
        "attribute" => $attribute,
        "name" => $name,
        "value" => $value
    ));
pc_pagelet("common/error", array(
    "errors" => $errors,
    "name" => $name));